setfenv(1, require'winapi')

--single-inheritance extensible oop model: subclassing behavior can be
--redefined by overriding __subclass(subclass). access to the parent class
--is done with self.__index.
function class(super)
	local c = {__index = super} --dynamic inheritance of parent class if any.
	if super then super:__subclass(c) end
	return setmetatable(c, c)
end

return _M
